<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			//字符串与正则表达式的相关方法
			/* var str = "1a2b3c4d5e6f7";
			var result = str.split(/[A-z]/);
			result = str.match(/[A-z]/g);
			//result = str.search(/[A-z]/);
			console.log(result); */
			var a = Math.round(Math.random()*10);
			var str = "1a2a3a4a5e6f7";
			var result = str.replace(/[A-z]/g,"");
			console.log(result);
		</script>
	</head>
	<body>
	</body>
</html>
